package day02;

import java.util.Arrays;

import org.junit.Test;

/**
 * 将字符串123,456,789,012根据","拆分，并输出拆分后的每一项
 * @author Bonnie
 *
 */
public class Test02 {
	@Test
	public void test() {
		String str = "123,456,789,012";// [,]{1,}
		String[] ss = str.split("[,]{1,}");
		System.out.println(Arrays.toString(ss));
		for (int i = 0; i < ss.length; i++) {
			System.out.print(ss[i] + " ");
		}
	}
}
